import requests


def post_cmcc(username: str, password: str):
    url = 'http://10.11.1.3/'
    headers = {
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) '
                      'Chrome/114.0.5735.289 Safari/537.36',
    }
    params = {
        'callback':'dr1003',
        'DDDDD': username,
        'upass': password,
        '0MKKey': 123456,
        'R1': 0,
        'R2': '',
        'R3': 0,
        'R6': 0,
        'para': 00,
        'v6ip': '',
        'terminal_type': '1',
        'lang': 'zh-cn',
        'jsVersion': '4.1.3',
        'v': '8495',
        'lang': 'zh',
    }
    response = requests.get(url=url, headers=headers, params=params)
    print(response.text)
    return response.status_code


